// DriveNotes. Copyright (c) 2011, Andrei Senchuk. All rights reserved.
package net.taviscaron.drivenotes.shared.service;

import java.util.List;
import javax.jws.WebService;
import net.taviscaron.drivenotes.shared.exceptions.InvalidEntityException;
import net.taviscaron.drivenotes.shared.model.entity.Car;
import net.taviscaron.drivenotes.shared.model.entity.User;

/**
 * Garage service
 * @author Andrei Senchuk
 */
@WebService(targetNamespace="http://endpoint.service.server.drivenotes.taviscaron.net/")
public interface GarageService {
    public List<Car> findCarsByOwnerId(Long ownerId);
    public Car findCar(Long carId, User owner);
    public void saveCar(Car car) throws InvalidEntityException;
    public void removeCarById(Long id);
}
